package com.yoda.youdianda.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yoda.youdianda.common.R;
import com.yoda.youdianda.domain.YddArticle;
import com.yoda.youdianda.dto.YddArticleDto;
import com.yoda.youdianda.vo.ArticleVo;
import com.yoda.youdianda.vo.PageResult;
import com.yoda.youdianda.vo.RArticlessVo;

import java.util.List;

/**
 * @author shawn
 * @date 2022年 11月 13日 14:50
 */
public interface YddArticleService extends IService<YddArticle> {
    List<YddArticle> getAllArticles();

    RArticlessVo recommend();


    Integer selectCount(LambdaQueryWrapper<YddArticle> lqw);


    void insert(YddArticleDto yddArticleDto);

    void deleteById(int id);

    PageResult<ArticleVo> selectByPage(Integer page, Integer pageSize, Integer id);

    List<YddArticle> getYddArticle(List<Integer> articleIds);

    R<String> upd(YddArticleDto yddArticleDto);
}
